package com.kitri.springmvc;

import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping( "/" )
public class WelcomeController {
	private static final Logger logger = LoggerFactory
			.getLogger(WelcomeController.class);

	@RequestMapping(method = RequestMethod.GET)
	public String welcome(Locale locale, Model model) {
		logger.info("Welcome home! the client locale is " + locale.toString());

		return "baselayout";
	}

	@RequestMapping(value = "main", method = RequestMethod.GET)
	public String main(Model model) {
		return "main";
	}

	@RequestMapping(value = "sayCeo", method = RequestMethod.GET)
	public String sayceo(Model model) {
		return "sayCeo";
	}

	@RequestMapping(value = "kitriRnD", method = RequestMethod.GET)
	public String kitriRnD(Model model) {
		return "kitriRnD";
	}

	@RequestMapping(value = "kitroIntro", method = RequestMethod.GET)
	public String kitriIntro(Model model) {
		return "kitroIntro";
	}

	@RequestMapping(value = "eduInfo", method = RequestMethod.GET)
	public String eduInfo(Model model) {
		return "eduInfo";
	}

}
